package de.gameduell.framework.facebook.event {
	import de.gameduell.facebook.service.gen.GameState;
	import flash.events.Event;

	public class GameStateEvent extends Event {
		
		public static const FOREIGN_GAMESTATE_RECEIVED:String = "FOREIGN_GAMESTATE_RECEIVED";
		public static const GAMESTATE_RECEIVED:String = "GAMESTATE_RECEIVED";
		private var _gameState:GameState;

		public function GameStateEvent(type:String, aGameState:GameState, bubbles:Boolean = false, cancelable:Boolean = false) {
			super(type, bubbles, cancelable);
			_gameState = aGameState;
		}
		
		public function get gameState():GameState {
			return _gameState;
		}
	}
}
